//
//  UIViewController+JJ_MJ.h
//  WOEWO
//
//  Created by huangjingjin on 2017/4/5.
//  Copyright © 2017年 BPMAC. All rights reserved.
//
#define  adjustsScrollViewInsets_NO(scrollView,vc)\
do { \
_Pragma("clang diagnostic push") \
_Pragma("clang diagnostic ignored \"-Warc-performSelector-leaks\"") \
if ([UIScrollView instancesRespondToSelector:NSSelectorFromString(@"setContentInsetAdjustmentBehavior:")]) {\
[scrollView   performSelector:NSSelectorFromString(@"setContentInsetAdjustmentBehavior:") withObject:@(2)];\
} else {\
vc.automaticallyAdjustsScrollViewInsets = NO;\
}\
_Pragma("clang diagnostic pop") \
} while (0)

#import <UIKit/UIKit.h>
#import "MJRefresh.h"
@interface UIViewController (MJRefresh)
@property(strong,nonatomic)NSString*curPage;
@property(strong,nonatomic)NSString*pageSize;
@property(strong,nonatomic)NSString*totalPage;
@property(strong,nonatomic)NSString*totalData;
/// 设置请求数据
@property (strong, nonatomic)NSMutableArray *dataMarr;
/// 设置请求返回消息
@property (nonatomic,copy) NSString *requestMsg;


- (void)add_jjHeadRefresh:(UIScrollView*)scrollView;
- (void)add_jjFooterRefresh:(UIScrollView*)scrollView;

- (void)load_jjNewData;
- (void)load_jjMoreData;

- (void)setNoMoreData:(UIScrollView*)scrollView title:(NSString *)title;
@end

